package log;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class Test {
	private static Log log=LogFactory.getLog(Test.class);
	public static void main(String[] args) {
//        Logger logger = LoggerFactory.getLogger(Test.class);  
//        LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); 
//        try {  
//            JoranConfigurator configurator = new JoranConfigurator();  
//            lc.reset();  
//            configurator.setContext(lc);  
//            configurator.doConfigure("D:\\Git\\workspace\\log\\src\\logback.xml");  
//        } catch (JoranException je) {  
//            StatusPrinter.print(lc.getStatusManager());  
//        }  
//        logger.info("Entering application.");  
//        logger.info("Exiting application.");  
//        logger.warn("WARN...");  
//        logger.error("ERROR...");  
		// TODO Auto-generated method stub
		log.debug("debug");log.info("info");log.warn("warn");log.error("error");
	}

}
